Optimal. Leaf size=205 \[ -\frac{f^2 (a+b x)^m (c+d x)^{-m} \left (-\frac{d (a+b x)}{b c-a d}\right )^{-m} \, _2F_1\left (-m,-m;1-m;\frac{b (c+d x)}{b c-a d}\right )}{d^3 m}+\frac{(a+b x)^{m+1} (d e-c f)^2 (c+d x)^{-m-2}}{d^2 (m+2) (b c-a d)}-\frac{(a+b x)^{m+1} (d e-c f) (c+d x)^{-m-1} (2 a d f (m+2)-b (c f (2 m+3)+d e))}{d^2 (m+1) (m+2) (b c-a d)^2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.542107, antiderivative size = 202, normalized size of antiderivative = 0.99, number of steps used = 4, number of rules used = 4, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154 \[ -\frac{f^2 (a+b x)^m (c+d x)^{-m} \left (-\frac{d (a+b x)}{b c-a d}\right )^{-m} \, _2F_1\left (-m,-m;1-m;\frac{b (c+d x)}{b c-a d}\right )}{d^3 m}+\frac{(a+b x)^{m+1} (d e-c f)^2 (c+d x)^{-m-2}}{d^2 (m+2) (b c-a d)}+\frac{(a+b x)^{m+1} (d e-c f) (c+d x)^{-m-1} (-2 a d f (m+2)+b c f (2 m+3)+b d e)}{d^2 (m+1) (m+2) (b c-a d)^2} \]
Antiderivative was successfully verified.
[In] Int[(a + b*x)^m*(c + d*x)^(-3 - m)*(e + f*x)^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 93.0442, size = 178, normalized size = 0.87 \[ - \frac{\left (a + b x\right )^{m + 1} \left (c + d x\right )^{- m - 2} \left (c f - d e\right )^{2}}{d^{2} \left (m + 2\right ) \left (a d - b c\right )} + \frac{\left (a + b x\right )^{m + 1} \left (c + d x\right )^{- m - 1} \left (c f - d e\right ) \left (2 a d f m + 4 a d f - 2 b c f m - 3 b c f - b d e\right )}{d^{2} \left (m + 1\right ) \left (m + 2\right ) \left (a d - b c\right )^{2}} - \frac{f^{2} \left (\frac{d \left (a + b x\right )}{a d - b c}\right )^{- m} \left (a + b x\right )^{m} \left (c + d x\right )^{- m}{{}_{2}F_{1}\left (\begin{matrix} - m, - m \\ - m + 1 \end{matrix}\middle |{\frac{b \left (- c - d x\right )}{a d - b c}} \right )}}{d^{3} m} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((b*x+a)**m*(d*x+c)**(-3-m)*(f*x+e)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [C] time = 2.69463, size = 426, normalized size = 2.08 \[ \frac{1}{3} (a+b x)^m (c+d x)^{-m-3} \left (\frac{6 e f (c+d x) \left (\frac{c (a+b x)}{a (c+d x)}\right )^{-m} \left (a^2 \left (c^2 \left (-\left (\left (\frac{c (a+b x)}{a (c+d x)}\right )^m-1\right )\right )-c d x \left (m \left (\frac{c (a+b x)}{a (c+d x)}\right )^m+2 \left (\frac{c (a+b x)}{a (c+d x)}\right )^m-2\right )+d^2 x^2\right )+b^2 c^2 (m+1) x^2 \left (\frac{c (a+b x)}{a (c+d x)}\right )^m-a b c x (d (m+2) x-c m) \left (\frac{c (a+b x)}{a (c+d x)}\right )^m\right )}{c (m+1) (m+2) (b c-a d)^2}-\frac{4 a c f^2 x^3 F_1\left (3;-m,m+3;4;-\frac{b x}{a},-\frac{d x}{c}\right )}{-4 a c F_1\left (3;-m,m+3;4;-\frac{b x}{a},-\frac{d x}{c}\right )-b c m x F_1\left (4;1-m,m+3;5;-\frac{b x}{a},-\frac{d x}{c}\right )+a d (m+3) x F_1\left (4;-m,m+4;5;-\frac{b x}{a},-\frac{d x}{c}\right )}-\frac{3 e^2 (c+d x) \left (\frac{d (a+b x)}{a d-b c}\right )^{-m} \, _2F_1\left (-m-2,-m;-m-1;\frac{b (c+d x)}{b c-a d}\right )}{d (m+2)}\right ) \]
Warning: Unable to verify antiderivative.
[In] Integrate[(a + b*x)^m*(c + d*x)^(-3 - m)*(e + f*x)^2,x]
[Out]
_______________________________________________________________________________________
Maple [F] time = 0.089, size = 0, normalized size = 0. \[ \int \left ( bx+a \right ) ^{m} \left ( dx+c \right ) ^{-3-m} \left ( fx+e \right ) ^{2}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((b*x+a)^m*(d*x+c)^(-3-m)*(f*x+e)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int{\left (f x + e\right )}^{2}{\left (b x + a\right )}^{m}{\left (d x + c\right )}^{-m - 3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((f*x + e)^2*(b*x + a)^m*(d*x + c)^(-m - 3),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \[{\rm integral}\left ({\left (f^{2} x^{2} + 2 \, e f x + e^{2}\right )}{\left (b x + a\right )}^{m}{\left (d x + c\right )}^{-m - 3}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((f*x + e)^2*(b*x + a)^m*(d*x + c)^(-m - 3),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x+a)**m*(d*x+c)**(-3-m)*(f*x+e)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int{\left (f x + e\right )}^{2}{\left (b x + a\right )}^{m}{\left (d x + c\right )}^{-m - 3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((f*x + e)^2*(b*x + a)^m*(d*x + c)^(-m - 3),x, algorithm="giac")
[Out]